/**	
 * <br>
 * Copyright 2012 Chuan. All rights reserved.<br>
 * <br>			 
 * Package: com.chuan.mantu.utils <br>
 * FileName: Const.java <br>
 * <br>
 * @version
 * @author javacyc@qq.com
 * @created 2012-11-15
 * @last Modified 
 * @history
 */

package com.chuan.mantu.utils;

import android.os.Environment;

/**
 * {常量配置}
 *  
 *  @author javacyc@qq.com
 *  @created 2012-11-15 下午03:46:59
 *  @lastModified       
 *  @history           
 */

public class Const {

	/**
	 * 部署级配置*************************Start
	 */
	public static final String WWW = "http://www.91sport.net:8080/BackResourceManager/";
	
	public static final String SDCARD_FILENAME = "com.chuan.mantu";

	public static final String UPLOAD_URL = WWW + "clientUploadify.do";
	
	public static final String DOWNLOAD_PICS_URL = WWW + "getDownPics.do?";
	
	public static final String DOWNLOAD_PIC_URL = WWW + "getPicById.do?";
	/**
	 * 部署级配置*************************End
	 */
	
	/**
	 * 从URL下载图片至根目录的上级目录<br>
	 * value : sdcard_filepath/mantu_filepath/pic_filepath/
	 */
	public static final String PIC_DOWNLOAD_ROOT_PATH = Environment.getExternalStorageDirectory().getAbsolutePath() 
													 	+ Const.PATH_BACKLASH
													 	+ SDCARD_FILENAME
													 	+ Const.PATH_BACKLASH
													 	+ Const.PIC_ROOT_PATH
													 	+ Const.PATH_BACKLASH;
	
	/**
	 * 图片类别
	 */
	public static final String PIC_CATEGORY = "category";
	
	/**
	 * 银魂
	 */
	public static final String PIC_CATEGORY_YINHUN = "yinhun";
	
	/**
	 * 经典
	 */
	public static final String PIC_CATEGORY_JINGDIAN = "jingdian";
	
	/**
	 * 搞笑
	 */
	public static final String PIC_CATEGORY_GAOXIAO = "gaoxiao";
	
	/**
	 * 港漫
	 */
	public static final String PIC_CATEGORY_GANGMAN = "gangman";
	
	/**
	 * 卖肉
	 */
	public static final String PIC_CATEGORY_MAIROU = "mairou";
	
	/**
	 * 其他
	 */
	public static final String PIC_CATEGORY_QITA = "qita";

	/**
	 * assets下图片根目录
	 */
	public static final String PIC_ROOT_PATH = "pic";
	
	/**
	 * 路径反斜线： /
	 */
	public static final String PATH_BACKLASH = "/";
	
	/**
	 * 调试信息级别
	 */
	public static final String DEBUG = "debug";
	
	/**
	 * 当前图片序号
	 */
	public static final String CURRENT_PICSEQ = "current_picseq";
	
	/**
	 * 如果获取不到数据，则从默认的0开始
	 */
	public static final int CURRENT_DEFAULT_PICSEQ = 0;
	
	/**
	 * 类别默认索引：0
	 */
	public static final int CATEGORY_DEFAULT_INDEX = 0;
	
	/**
	 * 当前图片默认索引：0
	 */
	public static final int CURRENT_DEFAULT_INDEX = 0;
	
	/**
	 * 手势：down
	 */
	public static final String GESTURE_DOWN = "down";
	
	/**
	 * 手势： up
	 */
	public static final String GESTURE_UP = "up";
	
	
	/**
	 * 手势： default<br>
	 * 没有操作<br>
	 */
	public static final String GESTURE_DEFAULT = "default";

	/**
	 * 当前一次性加载并显示的图片数量<br>
	 * 同时也是一次性下载的图片数量<br>
	 * 可配置修改<br>
	 * 5<br>
	 */
	public static int PIC_DISPLAY_NUM = 5;
	
	/**
	 * Android中打开图片文件类型<br>
	 * image/*
	 */
	public static String IMAGE_TYPE = "image/*";
	

	/**
	 * 2G/3G网络配置<br>
	 * INTENET_MOBILE
	 */
	public static String CONFIG_INTENET_MOBILE = "INTENET_MOBILE";
	
	/**
	 * 是否有可用的网络
	 */
	public static boolean VALID_INTENET = false;
	
	/**
	 * 是否回收图片<br>
	 * 默认：false
	 */
	public static boolean IF_BITMAP_RECYCLE = false;
}